Skip to content

Conversation

@h8d13
Copy link
Contributor

@h8d13 h8d13 commented Jan 9, 2026

This patch removes vim and nano from default in desktop and gives a menu option for Editor inside of Applications. This also properly enables it to be used as default through /etc/environment

Fixes the preview in main menu too and makes it more in line so that if you perform a minimal install you might still want to be able to edit files. This also enables $EDITOR global key value pair to be used consistently

Guys help I'm stuck in VIM

@h8d13 h8d13 requested a review from Torxed as a code owner January 9, 2026 12:54
@h8d13 h8d13 mentioned this pull request Jan 9, 2026
@h8d13
Copy link
Contributor Author

h8d13 commented Jan 9, 2026

You the goat of reviewing :D Cheers

Comment on lines 11 to 13
def _get_editor_binary(self, editor: Editor) -> str:
# special handling only name that differs
return 'nvim' if editor == Editor.NEOVIM else editor.value
Copy link
Contributor

@codefiles codefiles Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The paradigm used by this repo is to add functionality like this to the enum. Consider following that convention and moving this method to Editor instead and removing the underscore(_) that designates it as intending to be private.

Here are two instances of this paradigm being used in the repo (there are more):

Copy link
Contributor

@codefiles codefiles Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this suggestion can be ignored because you are following the convention set by archinstall/lib/models/application.py and other files in archinstall/applications.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See latest commit ;)

@svartkanin
Copy link
Collaborator

I'm quite worried at this point to go down a rabbit hole with this new application configuration. If we decide to give this specific configuration option in the menu there would be an argument to simply provide dozens of options for users to configure.

This is user software to be installed not a system configuration to get Arch up and running. It is not necessary for a working OS at all. The reason an editor was included in the profiles is to provide at least one out of the box so it can be used to edit files, ideally that should be the default a profile ships with otherwise.

@h8d13 h8d13 closed this Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants